package com.sdgakj.entity;

import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
import java.text.SimpleDateFormat;

/**
 * Created by 鲁俊杰 on 2017/4/17.
 * 家族大事记的实体类
 */
@Entity
@Table(name = "f_note")
public class Notes extends IdEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    private  String fnTitle;

    private  String fnDesp;

    private  String fnImages;

    private Timestamp createtime;

    private Timestamp updatetime;

    @ManyToOne(fetch = FetchType.LAZY )
    @JoinColumn(name = "f_id")
    private Long fId;

    public Notes(){
    }

    public Notes(String fnTitle, String fnImages, Timestamp fnCreatetime, Timestamp fnUpdatetime, Family family) {
        this.fnTitle = fnTitle;
        this.fnImages = fnImages;
        this.createtime = createtime;
        this.updatetime = updatetime;
        this.fId = fId;
    }

    public String getFnTitle() {
        return fnTitle;
    }

    public void setFnTitle(String fnTitle) {
        this.fnTitle = fnTitle;
    }

    public String getFnImages() {
        return fnImages;
    }

    public void setFnImages(String fnImages) {
        this.fnImages = fnImages;
    }

    public Timestamp getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Timestamp createtime) {
        this.createtime = createtime;
    }

    public String getFnDesp() {
        return fnDesp;
    }

    public void setFnDesp(String fnDesp) {
        this.fnDesp = fnDesp;
    }

    public Timestamp getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Timestamp updatetime) {
        this.updatetime = updatetime;
    }

    public Long getfId() {
        return fId;
    }

    public void setfId(Long fId) {
        this.fId = fId;
    }
}
